package com.mz.mattress.client.api.biz;

import com.mz.mattress.api.common.Result;
import com.mz.mattress.api.entity.MattressMessageRecord;
import com.mz.mattress.client.service.MattressMessageRecordService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/mattressMessageRecord")
@Slf4j
public class MattressMessageRecordController {

    @Autowired
    private MattressMessageRecordService mattressMessageRecordService;

    @GetMapping("/list")
    public Result<List<MattressMessageRecord>> list() {
        return mattressMessageRecordService.list();
    }

}
